﻿using System.Collections.Generic;

// ReSharper disable InconsistentNaming
// ReSharper disable IdentifierTypo

namespace K9Nano.LayIM.Models
{
    /// <summary>
    /// LayIM 页面初始化配置， https://www.layui.com/doc/modules/layim.html
    /// </summary>
    public class LayIMConfiguration
    {
        public ConfigUrl members { get; set; }

        public ConfigUrl uploadImage { get; set; }

        public ConfigUrl uploadFile { get; set; }

        public IList<ConfigTool> tool { get; set; }

        public string msgbox { get; set; }
        public string find { get; set; }
        public string chatLog { get; set; }

        public bool brief { get; set; } = false;
        public string title { get; set; } = "我的LayIM";
        public bool min { get; set; }
        public string right { get; set; } = "0px";
        public string minRight { get; set; }
        public string initSkin { get; set; } = string.Empty;
        public bool isAudio { get; set; } = false;
        public bool isVideo { get; set; } = false;
        public bool notice { get; set; } = false;
        public string voice { get; set; } = "default.mp3";
        public bool isfriend { get; set; } = false;
        public bool isgroup { get; set; } = false;
        public int maxLength { get; set; } = 3000;
        public bool copyright { get; set; } = false;
        
        public sealed class ConfigUrl
        {
            public string url { get; set; }

            public string type { get; set; } = "get";

            public object data { get; set; }
        }

        public sealed class ConfigTool
        {
            public string alias { get; set; }
            public string title { get; set; }
            public string icon { get; set; }
        }
    }
}
